Page({
  data: {
    orderDetailsList: [
      //{ id: '1', orderDetailsListName: '本单金额', orderDetailsListValue:'￥400.00'},
      { id: '2', orderDetailsListName: '订单号', orderDetailsListValue: '订单号：CY2018091567319' },
      { id: '3', orderDetailsListName: '品牌名', orderDetailsListValue: '匡威Converse' },
      { id: '4', orderDetailsListName: '维修类别', orderDetailsListValue: '照明安装' },
      { id: '5', orderDetailsListName: '安装/维修数量', orderDetailsListValue: '10' },
      { id: '6', orderDetailsListName: '施工日期', orderDetailsListValue: '2018-3-18(晚上22:00)' },
      { id: '7', orderDetailsListName: '施工地址', orderDetailsListValue: '北京市朝阳区酒仙桥路39号久隆百货一层J01C-50' },
      //{ id: '8', orderDetailsListName: '需要', orderDetailsListValue: '保险/电工证/紧急' },
      //{ id: '9', orderDetailsListName: '施工备注', orderDetailsListValue: 'Ant Design是一个服务于企业级产品的设计体系，基于『确定』和『自然』的设计价值观和模块化的解决方案。让设计者专注于更好的用户体验。' }
    ],
    currentTab: 1,
    clientHeight: 'auto'
  },
  onLoad: function () {
    var res = wx.getSystemInfoSync();
    var clientHeight = ((res.windowHeight * 2) - 234) + 'rpx';
    this.setData({
      clientHeight: clientHeight
    })
  },
  stopTouchMove: function () {
    return false;
  },
  clickTab: function (e) {
    var res = wx.getSystemInfoSync();
    var clientHeight = ((res.windowHeight * 2) - 234) + 'rpx';
    if (this.data.currentTab === e.target.dataset.current) {
      return false;
    } else {
      this.setData({
        currentTab: e.target.dataset.current,
        clientHeight: clientHeight
      })
    }
  },
  gotoApplyForAcceptance: function () {
    wx.navigateTo({
      url: '../applyForAcceptance/applyForAcceptance'
    })
  }
})